home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / os.492 < prev    next >
Text File  |  1992-02-06  |  1KB  |  25 lines

  1. DPS client errors
  2.  
  3. Q:  What do errors like
  4.  
  5.     DPS client library error while writing to connection DPS context c18c data -102
  6.  
  7. mean?
  8.  
  9. A:  The error reporter is basically printing out the elements of data passed in the exception initiated by NX_RAISE().  Usually the header file that defines the exception codes tells what data items are also passed.  Since this is a DPS client library error, we look through <dpsclient/dpsclient.h> for a write error exception code:
  10.  
  11.     dps_err_select, dps_err_read and dps_err_write signal communication
  12.     errors in the connection.  The OS return code is passed in arg1;
  13.     arg2 is unused.
  14.  
  15. In interpreting the dpsclient error message, the first data item is always the DPS context in which the error occurred.  The second item corresponds to arg1.  Note that any arg2 referred to in the exception code description doesn't get passed from the DPSErrorFunc into the NXRaise exception scheme.  Luckily, there arent any DPS errors where arg2 is essential info.
  16.  
  17. So, for the above error, the c18c is a DPS context and the -102 is a Mach return code.  The Mach codes happen to be defined in <sys/message.h>.  By the way, negative numbers in about the -100 to -1000 range tend to be Mach error return codes.
  18.  
  19. QA492            
  20.  
  21. Valid for 1.0 
  22. Valid for 2.0 
  23.  
  24.  
  25.